package com.glink.manage.dto.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class MenuFunctionPointsUpdateRequestDTO {

    @ApiModelProperty(value = "功能点id", required = true)
    @NotBlank(message = "菜单功能点信息不能为空")
    private String menuId;

    @ApiModelProperty(value = "菜单名", required = true)
    @NotBlank(message = "菜单名不能为空")
    @Size(max = 250, message = "菜单名超出限制，长度限制250位")
    private String menuName;

    @ApiModelProperty(value = "资源排序索引")
    @Max(value = 1000, message = "资源排序索引超出限制，大小限制1000位")
    private int idx;

    @ApiModelProperty(value = "菜单路径")
    private List<String> uriList;

    @ApiModelProperty(value = "键值标识")
    @Size(max = 250, message = "键值标识超出限制，长度限制250位")
    private String key;

    @ApiModelProperty(value = "上一级菜单id")
    private String pid;
}
